package com.neusoft.movie.v_movies.service;

import com.neusoft.movie.v_movies.javabean.ArticlesBean;
import com.neusoft.movie.v_movies.javabean.WordsBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/1/1.
 */

public interface ArticlesService {
    /*文章列表*/
    @GET("Articles/getArticleslist")
    Call<List<ArticlesBean>> getArticleslist();

    /*文章详情*/
    @GET("Articles/getDetail")
    Call<ArticlesBean> getDetail(
            @Query("a_id") int a_id
    );

    /*发表文章*/
    @GET("Articles/addarticles")
    Call<ArticlesBean> addarticles(
            @Query("u_id") int u_id,
            @Query("a_name") String a_name,
            @Query("a_info") String a_info,
            @Query("a_pic") String a_pic
    );

//    /*获取一条文章的全部评论*/
//    @GET("Articles/getArticlesCommentlist")
//    Call<List<ArticlesBean>> getArticlesCommentlist(
//            @Query("a_id") int a_id,
//            @Query("flag") int flag
//    );


    /*获取每日经典台词*/
    @GET("Articles/words")
    Call<WordsBean> words();

}
